<!doctype html>
<html>
	<meta charset="utf-8" />
	<title>WSCFORM-jQuery-WSCORE</title>
	<link href="../../theme/style.css" rel="stylesheet" type="text/css" />
	<script src="../../theme/browser.js" type="text/javascript"></script>
</head>
<body>
	<div class="header">
		<ol>
			<li><a href="../../index.html">首页</a></li>
			<li>表单Event</li>
		</ol>
	</div>
	<fieldset>
		<legend>表单Event</legend>
		初始化表单元素事件类型
		<div class="code">.wscform_event(element)</div>
		<div class="param">
			<strong>element</strong><br />
			类型：HTMLForm*Element<br />
			描述：原生态的Element元素
		</div>
	</fieldset>
	<fieldset>
		<legend>事件绑定</legend>
			按元素类型分别初始化各事件, 表单事件提交或激活时自动调用您绑定的事件
			<div class="code">blur</div>
			<div class="param">
				<strong>类型</strong><br />
				#1 checkbox<br />
				#2 file<br />
				#3 radio<br />
				#4 password<br />
				#5 select-one<br />
				#6 text<br />
				#7 textarea
				<div class="example">
					<i>$</i>(<u>selector</u>).<b>data</b>('<i>wscore_blur</i>', <b>function</b>(<u>event</u>){<br />
						&#160; &#160; &#160; &#160; // 逻辑代码<br />
						&#160; &#160; &#160; &#160; <b>return</b> <i>boolean</i>; // 必须返回Boolean型<br />
					});
				</div>
			</div>
			<div class="code">change</div>
			<div class="param">
				<strong>类型</strong><br />
				#1 checkbox<br />
				#2 file<br />
				#3 radio<br />
				#4 select-one
				<div class="example">
					<i>$</i>(<u>selector</u>).<b>data</b>('<i>wscore_change</i>', <b>function</b>(<u>event</u>){<br />
						&#160; &#160; &#160; &#160; // 逻辑代码<br />
					});
				</div>
			</div>
			<div class="code">focus</div>
			<div class="param">
				<strong>类型</strong><br />
				#1 file<br />
				#2 password<br />
				#3 select-one<br />
				#4 text<br />
				#5 textarea
				<div class="example">
					<i>$</i>(<u>selector</u>).<b>data</b>('<i>wscore_focus</i>', <b>function</b>(<u>event</u>){<br />
						&#160; &#160; &#160; &#160; // 逻辑代码<br />
					});
				</div>
			</div>
			<div class="code">keydown</div>
			<div class="param">
				<strong>类型</strong><br />
				#1 password<br />
				#2 text<br />
				#3 textarea
				<div class="example">
					<i>$</i>(<u>selector</u>).<b>data</b>('<i>wscore_keydown</i>', <b>function</b>(<u>event</u>){<br />
						&#160; &#160; &#160; &#160; // 逻辑代码<br />
					});
				</div>
			</div>
			<div class="code">keyup</div>
			<div class="param">
				<strong>类型</strong><br />
				#1 password<br />
				#2 text<br />
				#3 textarea
				<div class="example">
					<i>$</i>(<u>selector</u>).<b>data</b>('<i>wscore_keyup</i>', <b>function</b>(<u>event</u>){<br />
						&#160; &#160; &#160; &#160; // 逻辑代码<br />
					});
				</div>
			</div>
		</div>
	</fieldset>
</body>
</html>